import axios from "@/api";

export const gettriggerListAPI = (obj: any, data: any) => {
    return axios({
        url: "/service/page/trigger?paged=" + obj.paged+"&pageSize="+obj.pageSize,
        method: "post",
        data
    });
};

export const addtriggerAPI = (data: any) => {
    return axios({
        url: "/service/trigger",
        method: "post",
        data
    });
};

export const updatetriggerAPI = (data: any) => {
    return axios({
        url: "/service/trigger",
        method: "put",
        data
    });
};

export const deletetriggerAPI = (data: any) => {
    return axios({
      url: "/service/trigger?id="+data,
      method: "delete",
      
    });
  };